package com.kaifamiao.www.demo.do0823;

import java.util.Calendar;

public class Deno03 {
    public static void main(String[] args) {
        /**
         * Calendae类是抽象类，也是用来操作日期和时间的类，
         *Calendar默认显示当前时间，也可以查看其他时间
         *  通过静态方法getInstance()获得Calendar类的对象
         */
        Calendar calendar = Calendar.getInstance();
        int year = calendar.get(Calendar.YEAR);
        int mouth = calendar.get(Calendar.MONTH);
        int date = calendar.get(Calendar.DATE);
        int hour = calendar.get(Calendar.HOUR);
        int minute = calendar.get(Calendar.MINUTE);
        int second = calendar.get(Calendar.SECOND);
        int week = calendar.get(Calendar.DAY_OF_WEEK);

        StringBuffer today = new StringBuffer("今天是");

    }
}
